home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 April / Macworld (1999-04).dmg / Shareware World / Comms & Internet / PageSpinner 2.1 / PageSpinner 2.1 68K / Examples / JavaScript / Alert Stationery next >
Text File  |  1997-10-09  |  1KB  |  37 lines

  1. <HTML><HEAD>
  2. <TITLE>JavaScript Alert</TITLE>
  3. </HEAD>
  4. <BODY onLoad="window.alert('Welcome!');">
  5. <H1>JavaScript Alert</H1>
  6.  
  7. <B>This stationery page contains an example of a link that displays an alert</B>
  8. <P>
  9. Please note that JavaScript is currently only available in Netscape Navigator 2.0 or later, and in Internet Explorer for MacOS version 3.0.1 or later. <FONT COLOR="931B15">Do not assume that all in your audience are using a JavaScript enabled browser.</FONT>
  10. <HR>
  11. <P>
  12. <A HREF="#"
  13.  onClick="window.alert('This is a special message to you!');"
  14.  onMouseOver="window.status='This is not a regular link'; return true">Example</A> of a link displaying an alert dialog.
  15. <P>
  16. <HR>
  17. <P>
  18. <B>How to use:</B>
  19. <P>
  20. Use something like this inside the contents of your page to create a link that will display an alert.
  21.  
  22. <PRE><A HREF="#"
  23.  onClick="window.alert('This is a special message to you!');"
  24.  onMouseOver="window.status='This is not a regular link'; return true">Example</A>
  25.  of a link displaying an alert dialog.</PRE>
  26.  
  27. <P>
  28. <HR>
  29. <P>
  30. You can use the following Body tag:<P>
  31.  <CODE><BODY onLoad="window.alert('Welcome!');"></CODE>
  32. <P>
  33.  to display an <BLINK>annoying</BLINK> alert every time the page is loaded.
  34.  
  35. </BODY>
  36. </HTML>
  37.